-- GENERATED SPELL FOR [Spectral Citizen] --


function spell0_10384(pUnit, Event) --@Debilitating Touch,n/a--
pUnit:FullCastSpellOnTarget(16333,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10384', 607, 1)
end

function spell1_10384(pUnit, Event) --@Haunting Phantoms,n/a--
pUnit:FullCastSpellOnTarget(16336,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10384', 2000, 1)
end

function spell2_10384(pUnit, Event) --@Slap!,n/a--
pUnit:FullCastSpellOnTarget(6754,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10384', 3346, 1)
end

function Sorts_10384(pUnit, Event)
local choix_sorts_10384 = math.random(0, 2)
if choix_sorts_10384 == 0 then
pUnit:RegisterEvent('spell0_10384', 1, 1)
end
if choix_sorts_10384 == 1 then
pUnit:RegisterEvent('spell1_10384', 1, 1)
end
if choix_sorts_10384 == 2 then
pUnit:RegisterEvent('spell2_10384', 1, 1)
end
end

function mob10384_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10384', math.random(1500, 3000), 1)
end

function mob10384_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10384_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10384_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10384, 1, 'mob10384_Action')
RegisterUnitEvent(10384, 2, 'mob10384_Leave')
RegisterUnitEvent(10384, 3, 'mob10384_Kill')
RegisterUnitEvent(10384, 4, 'mob10384_Die')
